from pygame import Rect
from Ksink import load_menu_graphics
class Menu:
	def __init__(self):
		self.buttons = []
		self.images = load_menu_graphics()
		self.rect = Rect(30,400,320,32)
		self.mode = None
		
	def click(self, loc):
		menu_loc = (loc[0]-self.rect.x)/32
		if menu_loc == 0:
			self.mode = 'move'
		elif menu_loc == 1:
			self.mode = 'hit'
		elif menu_loc == 2:
			self.mode = 'pickup'
		print 'menu clicked', menu_loc, self.mode
	
	def get_mode(self, set='return'):
		if set == 'return':
			return self.mode
		else:
			self.mode = set
			print self.mode